package org.sean.contactdemo.domain;

import java.io.Serializable;
import java.util.Date;

import org.eclipse.core.runtime.IAdaptable;

/**
 * @author ZHANGSE
 */
public class Contact implements IAdaptable, Serializable {

	private int contactId;
	private int groupId;
	private String contactName;
	private GenderType contactGender;
	private Date contactBirth;
	private String mail;
	private String zipcode;
	private String address;
	private String areacode;
	private String companyName;
	private String companyAddress;
	private String picture;
	private String contactDesc;

	public Contact() {
	}

	public Contact(int groupId, String contactName) {
		this.groupId = groupId;
		this.contactName = contactName;
		this.contactGender = GenderType.MALE;
	}

	public Contact(int groupId, String contactName, GenderType contactGender) {
		this.groupId = groupId;
		this.contactName = contactName;
		this.contactGender = contactGender;
	}

	@Override
	public Object getAdapter(Class adapter) {
		// TODO Auto-generated method stub
		return null;
	}

	public int getContactId() {
		return contactId;
	}

	public void setContactId(int contactId) {
		this.contactId = contactId;
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public GenderType getContactGender() {
		return contactGender;
	}

	public void setContactGender(GenderType contactGender) {
		this.contactGender = contactGender;
	}

	public Date getContactBirth() {
		return contactBirth;
	}

	public void setContactBirth(Date contactBirth) {
		this.contactBirth = contactBirth;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAreacode() {
		return areacode;
	}

	public void setAreacode(String areacode) {
		this.areacode = areacode;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyAddress() {
		return companyAddress;
	}

	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getContactDesc() {
		return contactDesc;
	}

	public void setContactDesc(String contactDesc) {
		this.contactDesc = contactDesc;
	}

}
